package net.jatec.flashcards.java.persistence.hsql;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.List;

import net.jatec.flashcards.core.Card;
import net.jatec.flashcards.core.Container;
import net.jatec.flashcards.core.Deck;
import net.jatec.flashcards.core.persistence.Repository;

public class HSqlRepository implements Repository{

	private Connection conn;
	
	public HSqlRepository() throws Exception{
		createDB();
	}
	
	private void createDB() throws Exception{
        Class.forName("org.hsqldb.jdbc.JDBCDriver");
        conn = DriverManager.getConnection("jdbc:hsqldb:mem:flashcards.db", "", "");  
        
	}

	@Override
	public List<Deck> loadDecks(Container container) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Card> loadCard(Deck deck) {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
